package com.myproject.base;

public class Dog {

    public Dog dog = this;

    public Dog getDog() {
        return dog;
    }

    public void setDog(Dog dog) {
        this.dog = dog;
    }

    public static void main(String[] args) {
        Dog dog = new Dog();
        System.out.println(dog);
        System.out.println(dog.getDog());
    }
}
